﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ajayumi.Platform.Web.Controls.DataGrid;
using System.Text;

/// <summary>
///Class1 的摘要说明
/// </summary>
public class JQueryGridTestConstructor : JQueryGridConstructor
{
    public JQueryGridTestConstructor()
    {
        //
        //TODO: 在此处添加构造函数逻辑
        //
    }

    public override string GetColumnsModel()
    {
        StringBuilder sb = new StringBuilder();
        sb.Append("{ index: 'Id', name: 'Id', label:'编号', width: 100, sorttype: \"int\"},\n");
        sb.Append("{ index: 'Code', name: 'Code',label:'代码', width: 100, sorttype: \"text\", editable:true},\n");
        sb.Append("{ index: 'Name', name: 'Name',label:'名称', width: 100, sorttype: \"text\", editable:true },\n");
        sb.Append("{ index: 'Birthday', name: 'Birthday',label:'出生日期', width: 100, sorttype: \"text\", editable:true },\n");
        sb.Append("{ index: 'Address', name: 'Address',label:'联系地址', width: 100, sorttype: \"text\", editable:true }\n");

        return sb.ToString();

    }
}